# Maintainer: Simon Zeni <simon@bl4ckb0ne.ca>
pkgname=jellyfin-web
pkgver=10.8.13
pkgrel=0
pkgdesc="Web Client for Jellyfin"
url="https://jellyfin.org/"
# armv7: oom
arch="x86_64 aarch64"
options="!check net" # no tests
license="GPL-2.0-only"
install="$pkgname.post-install"
depends="jellyfin"
makedepends="npm"
source="$pkgname-$pkgver.tar.gz::https://github.com/jellyfin/jellyfin-web/archive/refs/tags/v$pkgver.tar.gz"

build() {
	npm ci --no-audit
}

package() {
	mkdir -p "$pkgdir"/usr/lib/jellyfin/jellyfin-web

	cp -r "$builddir"/dist/* "$pkgdir"/usr/lib/jellyfin/jellyfin-web
}

sha512sums="
e91f18379cff6001945704580633a5ea0d7e91013fbaaea17f811fcac0513b98f37ab9caf82d53c4b25ae964cdf2d5f8313b8666f576e02d889f6538c19eafd7  jellyfin-web-10.8.13.tar.gz
"
